
// 注册全局的getters 方便使用便于书写
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 将token注册到全局 便于使用
  token: state => state.user.token,
  name: state => state.user.UserObj.username,
  photo: state => state.user.UserObj.staffPhoto,
  routes: state => state.routes.routesList,
  roles: state => state.user.UserObj.roles,
  UserObj: state => state.user.UserObj
}
export default getters
